package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DisconnectObject {

    private int beginIndex;
    private int endIndex;
    private ConnectionObject connectionObject;
    private boolean all;
    private boolean current;

    public DisconnectObject(ConnectionObject connectionObject) {
        this.beginIndex = connectionObject.getBeginIndex();
        this.endIndex = connectionObject.getEndIndex();
        this.connectionObject = connectionObject;
    }

    public DisconnectObject(int beginIndex, int endIndex, boolean all, boolean current) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.all = all;
        this.current = current;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ConnectionObject getConnectionObject() {
        return connectionObject;
    }

    public boolean isAll() {
        return all;
    }

    public boolean isCurrent() {
        return current;
    }

}
